package org.jeecg.modules.zcgl.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.common.system.base.entity.DelFlagBaseEntity;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Description: 预存费用订单信息
 * @Author: jeecg-boot
 * @Date:   2020-12-28
 * @Version: V1.0
 */
@Data
@TableName("zcgl_prestore_order")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="zcgl_prestore_order对象", description="预存费用订单信息")
public class OrderPrestore extends DelFlagBaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

	/**订单编号*/
	@Excel(name = "订单编号", width = 15)
    @ApiModelProperty(value = "订单编号")
    private String orderNo;
	/**交易状态*/
	@Excel(name = "交易状态", width = 15)
    @ApiModelProperty(value = "交易状态")
    private String tradeStatus;
	/**客户信息*/
	@Excel(name = "客户信息", width = 15)
    @ApiModelProperty(value = "客户信息")
    private String customerId;
	/**交易信息*/
	@Excel(name = "交易信息", width = 15)
    @ApiModelProperty(value = "交易信息")
    private String tradeMessage;
	/**付款方名称*/
	@Excel(name = "付款方名称", width = 15)
    @ApiModelProperty(value = "付款方名称")
    private String payerName;
	/**付款方开户行*/
	@Excel(name = "付款方开户行", width = 15)
    @ApiModelProperty(value = "付款方开户行")
    private String payerBankDeposit;
	/**付款方账号*/
	@Excel(name = "付款方账号", width = 15)
    @ApiModelProperty(value = "付款方账号")
    private String payerAccount;
    /**
     * 入账公司
     */
    @Excel(name = "入账公司", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    @ApiModelProperty(value = "入账公司")
    private String rentCompanyId;

	/**支付时间*/
	@Excel(name = "支付时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "支付时间")
    private java.util.Date tradeTime;
	/**交易类型*/
	@Excel(name = "交易类型", width = 15)
    @ApiModelProperty(value = "交易类型")
    private String tradeType;
	/**微信支付订单号*/
	@Excel(name = "支付订单号", width = 15)
    @ApiModelProperty(value = "支付订单号")
    private String transactionId;
	/**收款金额*/
	@Excel(name = "收款金额", width = 15)
    @ApiModelProperty(value = "收款金额")
    private BigDecimal amountMoney;
	/**支付状态: 默认10 待支付，20支付中，30支付成功，40支付取消，50支付失败*/
	@Excel(name = "支付状态: 默认10 待支付，20支付中，30支付成功，40支付取消，50支付失败", width = 15)
    @ApiModelProperty(value = "支付状态: 默认10 待支付，20支付中，30支付成功，40支付取消，50支付失败")
    private Integer payStatus;
	/**支付方式*/
	@Excel(name = "支付方式", width = 15)
    @ApiModelProperty(value = "支付方式")
    private Integer payType;
	/**收款方开户行*/
	@Excel(name = "收款方开户行", width = 15)
    @ApiModelProperty(value = "收款方开户行")
    private String payeeBankDeposit;
	/**收款方账号*/
	@Excel(name = "收款方账号", width = 15)
    @ApiModelProperty(value = "收款方账号")
    private String payeeAccount;
	/**收款方名称*/
	@Excel(name = "收款方名称", width = 15)
    @ApiModelProperty(value = "收款方名称")
    private String payeeName;

    @Excel(name = "合同编号", width = 15)
    @ApiModelProperty(value = "合同编号")
    private String contractNum;
}
